//
//  YWMaterialApply.h
//  maintain
//
//  Created by 烟雨云渊 on 16/9/2.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWMaterialStatus.h"

@class YWHandler;
@class YWMaterialStockOut;
@class YWMaterialReturn;
@class YWMaterialCirculation;

/*******      物料申请         ********/
@interface YWMaterialApply : NSObject
/* 物料单据关联ID */
@property (nonatomic, assign) NSInteger materialRelationId;
/* 楼盘Id */
@property (nonatomic, copy) NSString * buildingId;
/* 驳回备注 */
@property (nonatomic, copy) NSString * rejectNote;
/* 创建时间 */
@property (nonatomic, assign) NSTimeInterval createTime;
/* 更新时间 */
@property (nonatomic, assign) NSTimeInterval updateTime;
/* 状态 */
@property (nonatomic, assign) YWMaterialDataStatus status;
/* 申请单Id */
@property (nonatomic, assign) NSInteger applyId;
/* 申请单号 */
@property (nonatomic, copy) NSString * applySequence;
/* 关联维保单号 */
@property (nonatomic, copy) NSString * linkSequence;
/* 申请人Id */
@property (nonatomic, strong) YWHandler* creator;
/* 物料清单 */
@property (nonatomic, strong) NSArray * details;
/* 回复列表 */
@property (nonatomic, strong) NSArray * replies;
/* 接收人数组 */
@property (nonatomic, strong) NSArray * recipients;
/* 接收人id数组(逗号隔开) */
@property (nonatomic, copy) NSString * receiverIds;
/* 抄送人数组 */
@property (nonatomic, strong) NSArray * observers;
/* 抄送人id数组 （逗号隔开）*/
@property (nonatomic, copy) NSString * carbonCopyIds;
/* 申请时间 */
@property (nonatomic, assign) NSTimeInterval applyTime;
/* 年月日（2016年10月13日），用于界面分组 */
@property (nonatomic, copy) NSString * yearMonthDay;
/* 申请状态 */
@property (nonatomic, assign) YWMaterialStatu applyStatus;
/* 备注 */
@property (nonatomic, copy) NSString * note;
/* 驳回用户 */
@property (nonatomic, strong) YWHandler* rejectUser;
@end


@interface YWMaterialApplyViewModel : NSObject
/* 物料单据关联ID */
@property (nonatomic, assign) NSInteger materialRelationId;
/* 申请Id */
@property (nonatomic, assign) NSInteger applyId;
/* 申请单号 */
@property (nonatomic, copy) NSString * applySequence;
/* 领用单号 */
@property (nonatomic, copy) NSString * stockoutSequence;
/* 申请人 */
@property (nonatomic, strong) YWHandler* creator;
/* 驳回用户 */
@property (nonatomic, strong) YWHandler* rejectUser;
/* 接收人数组 */
@property (nonatomic, strong) NSArray * receivers;
/* 申请时间 */
@property (nonatomic, assign) NSTimeInterval applyTime;
/* 更新时间 （在申请单被驳回时用到）*/
@property (nonatomic, assign) NSTimeInterval updateTime;
/* 年月日（2016年10月13日），用于界面分组 */
@property (nonatomic, copy) NSString * yearMonthDay;
/* 申请状态 */
@property (nonatomic, assign) YWMaterialStatu applyStatus;
/* 抄送人 */
@property (nonatomic, strong) NSArray * observers;
/* 创建时间 */
@property (nonatomic, assign) NSTimeInterval createTime;

/* 数据状态*/
@property (nonatomic, assign) YWMaterialDataStatus status;
/* 出库状态 0： 未出库 1 ：已出库*/
@property (nonatomic, assign) NSInteger stockOutStatus;
/* 出库时间 */
@property (nonatomic, assign) NSTimeInterval stockOutTime;
/* 关联维保单号 */
@property (nonatomic, strong) NSString * linkSequence;
/* 回复列表 */
@property (nonatomic, strong) NSArray * replies;
/* 物料清单 */
@property (nonatomic, strong) NSArray * details;
/* 备注 */
@property (nonatomic, copy) NSString * note;
@end

//解析归还二维码

@interface YWMaterialScanReturnJson : NSObject
/* 申请对象 */
@property (nonatomic, strong) YWMaterialApply * materialApply;
/* 领用对象 */
@property (nonatomic, strong) YWMaterialStockOut * materialStockOut;
/* 归还对象 */
@property (nonatomic, strong) YWMaterialReturn * materialReturn;
/* 流转信息数组 */
@property (nonatomic, strong) NSArray *materialCirculationInfos;
@end

//扫描出库二维码
@interface YWMaterialScanReceipient : NSObject
/* 领用ID */
@property (nonatomic, copy) NSString * receipientId;
/* 楼盘ID */
@property (nonatomic, copy) NSString * buildingId;
/* 备注 */
@property (nonatomic, copy) NSString * note;
/* 领用单号 */
@property (nonatomic, copy) NSString * receipientSequence;
/* 关联单号 */
@property (nonatomic, copy) NSString * linkSequence;
/* 领用详情 */
@property (nonatomic, strong) NSArray * receipientDetails;
/* 回复列表 */
@property (nonatomic, strong) NSArray * replies;
/* 申请单对象 */
@property (nonatomic, strong) YWMaterialApply * apply;
@end


//扫描归还二维码
@interface YWMaterialScanReturn : NSObject
/* 归还ID */
@property (nonatomic, copy) NSString * returnId;
/* 楼盘ID */
@property (nonatomic, copy) NSString * buildingId;
/* 备注 */
@property (nonatomic, copy) NSString * note;
/* 归还单号 */
@property (nonatomic, copy) NSString * returnSequence;
/* 关联单号 */
@property (nonatomic, copy) NSString * linkSequence;
/* 领用详情 */
@property (nonatomic, strong) NSArray * details;
/* 回复列表 */
@property (nonatomic, strong) NSArray * replies;
/* 申请单对象 */
@property (nonatomic, strong) YWMaterialApply * apply;
/* 领用单对象 */
@property (nonatomic, strong) YWMaterialStockOut * receipient;
@end




